<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Department')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select class="form-control"  id="c-department" data-rule="required" name="row[department]">
                <option value="">选择</option>
                {foreach name="groupdata" item="vo"}

                <option value="{$key}" {in name="key" value="" }selected{/in} {if condition="strpos($key,',') neq false"}disabled{/if}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">日期</label>
            <div class="col-xs-12 col-sm-8">
                <div class="form-inline" data-toggle="cxselect" data-selects="year,date">
                    <select id="c-year" data-rule="required" class="year form-control selectpicker" name="year" data-url="ajax/year?num=10">
                        <option value="{$DefaultsDate}" selected>{$DefaultsDate}年</option></select>
                    <select id="c-date" data-rule="required"  class="date form-control selectpicker"   name="date" data-url="ajax/year" data-query-name="year"></select>
                </div>
                <input type="hidden" id="DefaultsTime" value="{$DefaultsTime}">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">场次:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-scene" data-rule="required" class="form-control" style="width:120px" name="row[scene]" type="text" value="4-6">
            <span class="help-block">注：例如"4-6"场这样的形式添加</span>

        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Person')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-person" data-rule="required" class="form-control " name="row[person]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Text')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-text" data-rule="required" class="form-control " name="row[text]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Inputtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-inputtime" data-rule="required" class="form-control datetimepicker form-control" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[inputtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
